C (211/301)

From:Stephen Williams
Date:02 Aug 99 at 20:47:39
Subject:Re: libiff.a?

From: Stephen Williams <sw@nysa.u-net.com>

Bablos wrote:
>> If you are using a recent version of egcs with a recent linker (ld),
>> you'll be able to use iff.lib. Recent ports of the linker accept
>> object code in Amiga hunk format as well as a.out format. I've linked
>> output from PhxAss (in hunk format) with output from egcs/gas (in
>> a.out format) using a recent ld. Worked fine, no problems at all.
>
> How do I specify this in the makefile for the project, and where should
> I store the .lib file? I've got a basic understanding of how SAS/C
> works regarding this, but I haven't a clue with GCC!

I'm a bit out of my depth here, as the hunk format object modules
I've linked using egcs and ld were just that - object modules, not
actual libraries.

Try specifying them on the command line as if they were object
modules. You can even use "libfoo.a" type libraries like this;
there's nothing magic about them, you don't _have_ to use the "-l"
option. Make a directory called "gg:alib" and put iff.lib in it.
Then do something like:

gcc -o foo foo.c gg:alib/iff.lib

That's the best I can do; I apologize if it doesn't work :-/

-Stephen



[[ http://www.nysa.u-net.com/ ]]